<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Common:cssjs" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href='javascript:;' class="on"><em>角色授权</em></a><span>|</span> <a href='{:U("Rbac/rolemanage")}' ><em>角色管理</em></a> </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
	.table-list tr:hover,.table-list table tbody tr:hover{ background:#FFF}
.rbac {
    width: 98%;
}
.rbac ul li {
    border: 1px solid #CCCCCC;
    float: left;
    line-height: 20px;
    margin: 5px;
    padding: 5px;
}
.rbac ul li:hover {
    background: none repeat scroll 0 0 #FFFEEC;
}
</style>
<link href="{$Config.siteurl}statics/css/jquery.treeTable.css" rel="stylesheet" type="text/css" />
<div class="pad_10" id="load_priv">
  <div class="explain-col"> 温馨提示：权限是层级关系，上级没给权限，下级给了一样访问不了！ </div>
  <div class="bk10"></div>
  <div class="table-list">
    <table  cellpadding="0" cellspacing="0" width="100%" border="0">
      <form action="{:U('Rbac/authorize')}" method="post" name="authorizerbac">
        <thead class="tb-tit-bg">
          <tr>
            <th width="150">应用</th>
            <th>权限列表</th>
          </tr>
        </thead>
        <tbody>
          <volist name="xm" id="vo">
            <tr id="rbac{$vo['id']}">
              <td align="right" valign="top"><input name="menuid[]" type="checkbox" value="{$vo['id']}" <if condition="$vo['acc'] eq 1 ">checked="checked"</if>/> <b>{$vo['name']}</b> <br/>
                项目 (说明：{$vo['title']})</td>
              <td><volist name="vo['mok']" id="m">
                  <table width="100%" class="rbtable"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left" valign="top"><input name="menuid[]" type="checkbox" value="{$m['id']}" <if condition="$m['acc'] eq 1 ">checked="checked"</if>/> <b>{$m['name']}</b> 模块<br/>
                        说明：{$m['title']}</td>
                    </tr>
                    <tr>
                      <td><div class="rbac">
                          <ul>
                            <volist name="m['jied']" id="j">
                              <li><input name="menuid[]" type="checkbox" value="{$j['id']}" <if condition="$j['acc'] eq 1 ">checked="checked"</if>/> <b>{$j['name']}</b> 方法<br/>
                                说明：{$j['title']}</li>
                            </volist>
                          </ul>
                        </div></td>
                    </tr>
                  </table>
                </volist></td>
            </tr>
          </volist>
        </tbody>
        <thead class="tb-tit-bg">
          <tr>
            <th colspan="2" align="left">
            <input type="hidden" name="roid" value="{$roid}" />
              <input class="button" name="提交" type="submit" value="确认授权" /></th>
          </tr>
        </thead>
      </form>
    </table>
  </div>
</div>
</body>
</html>